<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="../lib/jsc.min.js" type="text/javascript"></script>
    <script src="../viewx.min.js"></script>
    <script>
        Page({
            data: {
                value:"hello"
            },
            clickBtn: function () {
                this.setData({
                    value: new Date().toString()
                })
            }
        })
    </script>
</head>
<body>

    <div>录入值：<input type="text" class="vx" vx--value="{{value}}" style="width:500px" /></div>

    <div>模型值：<vx>{{value}}</vx></div>

    <div>设置值：<button class="vx" catch-click="clickBtn">点击设置值</button></div>

</body>
</html>